<?php

    // TITLE: viewGuestList
    // FILE: shared/viewGuestList.php
    // AUTHOR: des301
    // CREATED: 2015/02/18 11:14:31
    // DESCRIPTION: 
    // REQUIREMENTS:

?>
<table>
    <thead>
	<tr>
	    <th>title</th>
	    <th>first_name</th>
	    <th>last_name</th>
	    <th>status</th>
	    <th>gender</th>
	    <th>dob</th>
	    <th>attending</th>
	</tr>
    </thead>
    <tbody>
    <?php foreach ($fields as $field)  { ?>
	<tr onclick="goto('<?php echo $person->getId(); ?>');">
	    <td><?php echo $person->getTitle()->getTitle(); ?></td>
	    <td><?php echo $person->getFirstName(); ?></td>
	    <td><?php echo $person->getLastName(); ?></td>
	    <td><?php echo $person->getStatus()->getTitle(); ?></td>
	    <td><?php echo $person->getGender(); ?></td>
	    <td><?php echo $person->getDob(); ?></td>
	    <td><?php echo $guestList->getStatus()->getTitle(); ?></td>
	</tr>
    <?php } ?>
    </tbody>
</table>